using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using SILAS.Entidades;

namespace SILAS.DAO.Models.Mapping
{
    public class VisitaMap : EntityTypeConfiguration<Visita>
    {
        public VisitaMap()
        {
            // Primary Key
            this.HasKey(t => t.IdVisita);

            // Properties
            // Table & Column Mappings
            this.ToTable("Visita");
            this.Property(t => t.IdVisita).HasColumnName("IdVisita");
            this.Property(t => t.Acta).HasColumnName("Acta");
        }
    }
}
